set path=%path%;%cd%\cmd;
d:
cd d:/
mkdir cppcode
cd cppcode


git init

echo off
git remote add origin https://gitee.com/haoyoul/cpp.git

git config core.sparsecheckout true

set /p var="请输入你的学号后两位："
set /p vname="请输入你的中文姓名："
echo %var% >> .git/info/sparse-checkout
git config --global user.email "yourEmail@163.com"
git config --global user.name %vname%
git config --global credential.helper  "store"
git pull origin master

echo.
echo "你的代码在D盘cppcode目录"
echo.
echo.
echo.
pause